﻿using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Finance.Logs
{
    public class OperationLogDto : EntityDto<Guid>
    {
        public DateTime Date { get; set; }

        public Guid? OperatorId { get; set; }

        public string OperatorName { get; set; }

        public OperationType OperationType { get; set; }

        /// <summary>
        /// 模块代码
        /// </summary>
        public string ModuleCode { set; get; }

        /// <summary>
        /// 模块名称
        /// </summary>
        public string ModuleName { set; get; }

        public Guid? ObjectId { get; set; }

        public string ObjectName { get; set; }

        public List<OperationLogItemDto> Items { get; set; }
    }


    public class OperationLogItemDto : EntityDto<Guid>
    {
        public Guid? OperationLogId { get; set; }

        public string FieldName { get; set; }

        public string FieldCaption { get; set; }

        public object FieldOldValue { get; set; }

        public string FieldOldCaptionValue { get; set; }

        public object FieldNewValue { get; set; }

        public string FieldNewCaptionValue { get; set; }

        public string Comment { get; set; }
    }
}
